<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Trolley</title>

    <!-- Google Font: Source Sans Pro -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
          integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
    <!-- Theme style -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.1/dist/css/adminlte.min.css">
    <link href="static/img/trolley.png" rel="icon">
    <script>
      var data = {{ data|tojson }};








    </script>
</head>

<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-dark">
        <!-- Left navbar links -->
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
            </li>
            <li class="nav-item d-none d-sm-inline-block">
                <a href="#" class="nav-link">Home</a>
            </li>
            </li>
        </ul>

        <!-- Right navbar links -->
        <ul class="navbar-nav ml-auto">
            <!-- Navbar Search -->
            <li class="nav-item">
                <a class="nav-link" data-widget="navbar-search" href="#" role="button">
                    <i class="fas fa-search"></i>
                </a>
                <div class="navbar-search-block">
                    <form class="form-inline">
                        <div class="input-group input-group-sm">
                            <input class="form-control form-control-navbar" type="search" placeholder="Search"
                                   aria-label="Search">
                            <div class="input-group-append">
                                <button class="btn btn-navbar" type="submit">
                                    <i class="fas fa-search"></i>
                                </button>
                                <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                                    <i class="fas fa-times"></i>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </li>
        </ul>
    </nav>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="#" class="brand-link">
            <img src="static/img/trolley.png" alt="Trolley Logo" class="brand-image  elevation-2"
                 style="opacity: .99">
            <span class="brand-text font-weight-light">Trolley</span>
        </a>

        <!-- Sidebar -->
        <div class="sidebar">
            <!-- Sidebar user panel (optional) -->
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="data:image/png;base64,{{image}}" class="img-circle elevation-2" alt="User Image"
                         id="profilePicURL">
                </div>
                <div class="info">
                    <a href="#" class="d-block" id="userNameLabel"></a>
                </div>
            </div>

            <!-- SidebarSearch Form -->
            <div class="form-inline">
                <div class="input-group" data-widget="sidebar-search">
                    <input class="form-control form-control-sidebar" type="search" placeholder="Search"
                           aria-label="Search">
                    <div class="input-group-append">
                        <button class="btn btn-sidebar">
                            <i class="fas fa-search fa-fw"></i>
                        </button>
                    </div>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                    data-accordion="false">
                    <li class="nav-item" id="build-clusters-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fad fa-cubes"></i>
                            <p>
                                Build Clusters
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item" style="display: none;" id="build-aks-clusters-div">
                                <a href="build-aks-clusters" class="nav-link active">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="build-eks-clusters-div">
                                <a href="build-eks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>EKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="build-gke-clusters-div">
                                <a href="build-gke-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>GKE Clusters</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="manage-clusters-div">
                        <a href="#" class="nav-link">
                            <i class="fad fa-wrench"></i>
                            <p>
                                Clusters Management
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item" id="manage-aks-clusters-div">
                                <a href="manage-aks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-eks-clusters-div">
                                <a href="manage-eks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>EKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-gke-clusters-div">
                                <a href="manage-gke-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>GKE Clusters</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="manage-vms-div">
                        <a href="#" class="nav-link">
                            <i class="far fa-server"></i>
                            <p>
                                VMs Management
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item" style="display: none;" id="manage-az-vm-instances-div">
                                <a href="manage-az-vm-instances" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AZ VM Instances</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-aws-ec2-instances-div">
                                <a href="manage-aws-ec2-instances" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AWS EC2 Instances</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-gcp-vm-instances-div">
                                <a href="manage-gcp-vm-instances" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>GCP VM Instances</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="users-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-user"></i>
                            <p>
                                Users
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item">
                                <a href="manage-users" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Users Management</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="teams-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-users"></i>
                            <p>
                                Teams
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item">
                                <a href="manage-teams" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Teams Management</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="clients-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-building"></i>
                            <p>
                                Clients
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item">
                                <a href="manage-clients" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Clients Management</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="dashboards-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-tachometer"></i>
                            <p>
                                Billing Dashboards
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item" id="products-div">
                                <a href="products-dashboards" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Products</p>
                                </a>
                            </li>
                            <li class="nav-item" id="events-div">
                                <a href="events-dashboards" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Events</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="settings-div" style="display: none;">
                        <a href="manage-settings" class="nav-link">
                            <i class="fa fa-cog" aria-hidden="true"></i>
                            <p>
                                Settings
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="logout" class="nav-link">
                            <i class="nav-icon far fa-sign-out"></i>
                            <p>
                                Log out
                            </p>
                        </a>
                    </li>
                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="col-md-6" id="callout-div" style="display: none;">
                    <div class="card card-default">
                        <div class="card-header">
                            <h3 class="card-title">
                                <i class="fas fa-bullhorn"></i>
                            </h3>
                        </div>
                        <div class="card-body">
                            <div class="callout callout-info">
                                <p>Please add your providers and GitHub details in the <a href="manage-settings"
                                                                                          style="color:#FFFFFF;">
                                    Settings </a>
                                    menu to be able to build AKS Clusters! </p>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="clusters-build-elements-div" style="display: none;">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1 class="m-0">Build an AKS cluster</h1>
                        </div><!-- /.col -->
                    </div><!-- /.row -->
                    <div class="col-lg-4 align-content-lg-center">
                        <div class="form-group">
                            <label>Select Location</label>
                            <br>
                            <select class="col-lg-8 align-content-lg-center" id="az-locations-dropdown">
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 align-content-lg-center">
                        <!-- select -->
                        <div class="form-group" id="aks-nodes-amt-label" style="display: none;">
                            <label>Select the amount of nodes</label>
                            <select class="form-control" id="nodes-amount-dropdown">
                                <option>1</option>
                                <option>2</option>
                                <option>3</option>
                                <option>4</option>
                                <option>5</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 align-content-lg-center">
                        <!-- select -->
                        <div class="form-group" id="aks-versions-label" style="display: none;">
                            <label>Select the Kubernetes version</label>
                            <select class="form-control" id="aks-versions-dropdown">
                                <option>1.26.3</option>
                                <option>1.26.0</option>
                                <option>1.25.5</option>
                                <option>1.24.10</option>
                                <option>1.24.9</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 align-content-lg-center">
                        <div class="form-group" id="az-resource-group-label" style="display: none;">
                            <label>Select Resource Group</label>
                            <br>
                            <select class="col-lg-8 align-content-lg-center" id="az-resource-groups-dropdown">
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 align-content-lg-center">
                        <div class="form-group" id="az-machines-series-label" style="display: none;">
                            <label>Select Machine Series</label>
                            <br>
                            <select class="col-lg-8 align-content-lg-center" id="az-machines-series-dropdown">
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 align-content-lg-center">
                        <div class="form-group" id="az-machines-types-label" style="display: none;">
                            <label>Select Machine Type</label>
                            <br>
                            <select class="col-lg-8 align-content-lg-center" id="az-machines-types-dropdown">
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 align-content-lg-center">
                        <!-- select -->
                        <div class="form-group" id="expiration-time-label" style="display: none;">
                            <label>Select the expiration time</label>
                            <select class="form-control" id="expiration-time-dropdown">
                                <option value="1">1h</option>
                                <option value="2">2h</option>
                                <option value="4">4h</option>
                                <option value="8">8h</option>
                                <option value="12">12h</option>
                                <option value="24">24h</option>
                                <option value="48">2d</option>
                                <option value="96">4d</option>
                                <option value="168">7d</option>
                                <option value="336">14d</option>
                                <option value="720">30d</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-4 align-content-lg-center" id="az-warning-label">
                        <div class="callout callout-info">
                            <h5>Billing System Info!</h5>
                            <p>Select a location with an existing Resource Group to be able to build a
                                cluster!</p>
                        </div>
                    </div>
                    <div class="col-lg-4 align-content-lg-center" id="cost-label-div" style="display: none;">
                        <div class="callout callout-info">
                            <h5>System Info!</h5>
                            <p id="cost-label">Calculating costs</p>
                        </div>
                    </div>
                    <br>
                    <button type="submit" class="btn btn-info" id="build-cluster-button" style="display: none;">Build
                        Cluster!
                    </button>
                </div><!-- /.container-fluid -->
            </div>
        </div>
        <!-- /.content-header -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Control sidebar content goes here -->
    </aside>
    <!-- /.control-sidebar -->

    <!-- Main Footer -->
    <footer class="main-footer">
        <strong>Copyright &copy; 2022-2023 <a href="https://trolley.io">trolley</a></strong>
        All rights reserved.
        <div class="float-right d-none d-sm-inline-block">
            <b>Version</b> {{ data.version }}
        </div>
    </footer>
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="{{url_for('static', filename='script.js')}}"></script>
<!-- Bootstrap 4 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
        crossorigin="anonymous"></script>
<!-- AdminLTE App -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.1.0/js/adminlte.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
</body>
</html>
